﻿@model KRM.Core.tblDeliveryReport
@{
    ViewBag.Title = "Set Date for Item";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div style="padding: 10px">
    @Html.Partial("Partial/_MessageResult")
    <form action="/orderview/OverrideChangeDate" method="POST">
        <input type="hidden" name="orderitemid" value="@ViewBag.orderitemid"/>
        <input type="hidden" name="sendmail" value="@(Request["sendmail"]??"false")"/>
        <div class="row-fluid">
            <div class="span3">
                Despatch Date
            </div>
            <div class="span1">
                <input type="checkbox" id="cbDespatchDate" checked="checked"  /></div>
            <div class="span8">
                <div class="datetimepicker input-append">
                    <input data-format="MM/dd/yyyy HH:mm:ss" type="text" name="despatchdate" id="despatchdate" value="@(Model != null ? Model.DespatchDate.ToString() : "")" required="required" >
                    <span class="add-on">
                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                    </span>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span3">
                Delivery Date
            </div>
            <div class="span1">
                <input type="checkbox" id="cbDeliveryDate" checked="checked" /></div>
            <div class="span8">
                <div class="datetimepicker input-append">
                    <input data-format="MM/dd/yyyy HH:mm:ss" type="text" name="deliverydate" id="deliverydate" value="@(Model != null ? Model.DeliveryDate.ToString() : "")" required="required" >
                    <span class="add-on">
                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                    </span>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span3">
            </div>
            <div class="span1">
                <input type="checkbox" id="cbemail" name="cbemail" checked="checked" /></div>
            <div class="span8">
                Send customer an email update
            </div>
        </div>
        <div class="row-fluid">
            <div class="span3">
            </div>
            <div class="span1"></div>
            <div class="span8">
                <input type="submit" value="Update" class="btn btn-primary" />
                <input type="button" class="btn" onclick="javascript: window.close();" value="Cancel" />
            </div>
        </div>
    </form>
</div>
